package com.example.appmyfirsttest;

import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.entity.scene.Scene;
import org.anddev.andengine.entity.scene.Scene.IOnSceneTouchListener;
import org.anddev.andengine.entity.sprite.Sprite;
import org.anddev.andengine.input.touch.TouchEvent;
import org.anddev.andengine.opengl.texture.Texture;
import org.anddev.andengine.ui.activity.BaseGameActivity;

public class ImplementInterface extends MainActivity implements IOnSceneTouchListener {
	
	public Engine onLoadEngine() {
		// TODO Auto-generated method stub
		return null;
	}

	public void onLoadResources() {
		
		
	}

	public Scene onLoadScene() {
		// TODO Auto-generated method stub
		return null;
	}

	public void onLoadComplete() {
		// TODO Auto-generated method stub
		
	}

	public boolean onSceneTouchEvent(Scene pScene, TouchEvent pSceneTouchEvent) {
		if(pSceneTouchEvent.isActionDown()){
			Sprite bola = new Sprite(
					pSceneTouchEvent.getX(), pSceneTouchEvent.getY(), this.texturaJogadorO);
			this.cena.attachChild(bola);
			return true;
		}
		
		return false;
	}
	

}
